<template>
  <view>
    <my-login v-if="!getToken" />
    <my-user-info v-else />
  </view>
</template>

<script>
import tabBarBadge from '@/mixins/tabBar-badge'
import { mapGetters } from 'vuex'
import myLogin from '../../conponents/my-login/my-login.vue'
import MyUserInfo from '../../conponents/my-userInfo/my-userInfo.vue'
export default {
  components: { myLogin, MyUserInfo },
  mixins: [tabBarBadge],
  computed: {
    ...mapGetters('user', ['getToken'])
  }

}
</script>

<style>
</style>